<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人资料管理</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
-->
</style>
<!-- 框架必须 -->
	<link rel="stylesheet" type="text/css" href="/RMS/css/easy_ui/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="/RMS/css/easy_ui/icon.css"/>
	<script type="text/javascript" src="/RMS/js/jquery.min.js"></script>
	<script type="text/javascript" src="/RMS/js/jquery.easyui.min.js"></script>
<!-- 框架必须end -->
<script type="text/javascript">
//删除操作
function onDelete(id){
	if(confirm("确定要删除吗？")){
	}
}
//查询详情
function updateSubmit(){
	var id=$("#id").val();
	var shop_id=$("#shop_id").val();
	var shop_name=$("#shop_name").val();
	var username=$("#username").val();
	var user_phone=$("#user_phone").val();
	var user_tell=$("#user_tell").val();
	var real_name=$("#real_name").val();
	var user_address=$("#user_address").val();
	var email=$("#email").val();
	var qq=$("#qq").val();
	
	$.ajax({
		url:"/RMS/shopUser/update.do",
		async:false,
		data:{id:id,qq:qq,email:email,user_address:user_address,real_name:real_name,user_tell:user_tell,user_phone:user_phone,
			username:username,shop_name:shop_name,shop_id:shop_id},
		success:function(reslut){
			if(reslut==1){
				$.messager.alert('消息提示','修改成功!');
			}
		}
	});
}



</script>
</head>

<body>
<form action="/RMS/shopUser/update.do" method="post">
<input type="hidden" id="id" name="id" value="${bean.id }"/>
<input type="hidden" id="shop_id" name="shop_id" value="${bean.shop_id }"/>


<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  	<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="right"><span class="STYLE10">餐厅名称：</span></div></td>
  	<td width="25%"><input type="text" value="${bean.shop_name }" name="shop_name" id="shop_name" disabled="disabled"/></td>
  	<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="right"><span class="STYLE10">用户名：</span></div></td>
  	<td width="25%"><input type="text" value="${bean.username }" id="username" name="username" disabled="disabled"/></td>
  </tr>
  <tr>
  	<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="right"><span class="STYLE10">真实名称：</span></div></td>
  	<td width="25%"><input type="text" value="${bean.real_name }" id="real_name" name="real_name" /></td>
  	<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="right"><span class="STYLE10">手机号码：</span></div></td>
  	<td width="25%"><input type="text" value="${bean.user_phone }" id="user_phone" name="user_phone" /></td>
  </tr>
  <tr>
  	<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="right"><span class="STYLE10">座机号码：</span></div></td>
  	<td width="25%"><input type="text" value="${bean.user_tell }" id="user_tell" name="user_tell" /></td>
  	<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="right"><span class="STYLE10">联系地址：</span></div></td>
  	<td width="25%"><input type="text" value="${bean.user_address }" id="user_address" name="user_address" /></td>
  </tr>
  <tr>
  	<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="right"><span class="STYLE10">电子邮件：</span></div></td>
  	<td width="25%"><input type="text" value="${bean.email }" id="email" name="email" /></td>
  	<td width="25%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="right"><span class="STYLE10">QQ：</span></div></td>
  	<td width="25%"><input type="text" value="${bean.qq }" id="qq" name="qq" /></td>
  </tr>
  <tr>
  	<td></td><td><div align="right"><span class="STYLE10"><input type="button" onclick="updateSubmit();" value="确定"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置"/></span></div></td>
  	<td></td><td></td>
  </tr>
  
  
</table>
</form>
</body>
</html>
